quit is broken

always returns to menu when it is done. possible fix is to not call
"previous state"