Added ratings and some logic to pages