Template manager

Template manager works now.