View switching works now