Improve View's render function