Added loading directive script to the base designer template