changed view logic