This class provides the listener for fetching templates
This method is invoked when templates are available
This method is invoked when an error occured
This method is invoked when the REST api call is made. In this method, app can for example display the progress indicator