Updated UI, added Logger, Formatted code, added spinner while getting Ajax Response