adding some ajax and stuff