Add ajax and progress bar