splitting initiliaze to fetch and authorize function
added loading spinner for moodle, without using utils loadingview closes #140