adjust pop up when resize window