Popup Movement

Popup doesn't move off the edge when the user reaches the end of the
screen. Instead it now switches sides.