How to measure form visibilty