added edit mode, todo: save chapterids in user