Fix Smarty errors

Fix controller stuff in router