set button functionality, application functioning