change view logick