hitting esc key closes detail view