fix
fix
added events and tabs; fixed bugs