Problem with rendering via view