Equals method for view comparing id