centric positioning of popup solved