Prettify and add 2 ajax calls