Made arrow button work on popup