connected buttons to actions