updates to fix error with putting down the wrong template