cleaning up repo view render method