function button control