added onclick listener and initialized a button object for activity two