add ajax functionality

ahh no worries