better handler for dropdown hidding