events working on main page