fixed a bug where a new ajax call would be issued for cached template