cleaned up remove dropdown helper