Adding action handlers to remote.py