Add ajax functionality to Create Destination (not working correctly).