Added persistence and offline check for adding an answer.