Master refactoring to ionic project