refactor the code
add periodic click m/r job