Added logic for dropbox button.