updated the get template parts to work properly