added ajax functionality to main features
added ajax func. to main features