ticket:6 views logic fix