changed profile routes to rpofile/:id route so the users have individual routes to go
refactored the profile controller and template