add log messages when an action is launched
remove irrelevant printf
add toggle switch action