add functionality to edit repeate state