Added opening sequence and fixed event bugs