turns buttons into dropdown menu