Fix bug with opening a palette
Remove double press back to exit