Refactored some common used elements (loading, sidebar, navbar) into appService