making the custom dropdown reusable outside of the header.