Added grading and ui functionality to Inverse question page