fixing grid visibility check - and form if we are there