dynamic navbar dropdown select feature working