modified posts controller and profile view