Handle chapter id upon save