hide popup when div not occupied