Added ajax functionality for discussions