Initial implementation of the dropdown widget