Disabling the square widget through conditions