added exit button
fixed button mousedown merge conflict