added dropdown menu functionality