More fixes. Better firefox and chrome compatibility in terms of popup UX