Adding partials to modularize the erb code