Converted ajax calls to be asynchronous