Added Ajax support

Added Ajax support, will use the url specified in the collection.
Updated the changes