hiding the dropdown when being on inside a lesson