Add animation and make ajax async