generate json for question response graphs
cleaned up naming and set timeout for UI locking