Added function which were mentioned in fragment_main