Refactoring toggleSolved to be centralized in bug.