added animations and ajax functionality