calendar events refactoring and authorization of its user