Added some Ajax functionality