added another register hotkey method