removed redundant ajax call