began to work on ajax version