upgraded angular apply on save