add isLoading to mainController