Split view code in partial