modify submit in onandoff activity depending on action