corrected positioning of popup