implementing ajax
added some style