Added a script to template_master and removed some unused buttons.