Change condition for view in home work