Added functionality for getting the current viewed fragment. Created method setHandler() in the main activity which sets the appropriate handler object for each fragment. Moved the Newhandler to the HomeFragment class.