remove unused & wrong function for dropdown menu