Fix ajax
Add function for discussion