added functionality

Added Rating Functions
Code Clean up
added pagetitle for views