updated popup alignment