Changed if statement in view