Finished first activity's functionality to capture onClick