Refactored dropdown some + close when clicking off menu or pressing escape