added events and routes