defining methods to track users views