Basic functionality build for ajax plugin