implementing dropdown to close #159