fixing controller to route to public folder