Views counting system. Some fixes