Fix some weird error in height to check if navigationController is nil before calculating height
Add control to switch all and my events