Set up maintenace template and fixed error in mothership template.php