Adding functionalities to main Activity