Created functionality to allow users to add templates