approval + set/reset online status flags + on update template