change monitor actions from appdelegate to monitor