fixed bugs in add_problems page