discussion edit / delete button and real-time updates bug