added events to necessary views