refactor checkout partials and load functions