theme  edit dirty flag fixes