Working functionality for .reset and .resetTemplate