added routes for user and event