autosize popups, add focus