added events to the backend and hooked it 2 view