activities/list/FE: re-factor code to follow currently edited item