Before changing to ionic