changed popup positioning