removed ajax call as it is now unneeded.