moved main from views to views/partials