Added some code for Hit button events