add 'diff_open' and 'status_open' hooks