Better displaying of popup