Refractored Ajax and Added more styling