repositioned and set max size of popups