Fixing popup window for small screens