Impelmented basic button functionality