Finished application logic and button interactions