Fix showing and hiding graphs. Fix error message box