Addd show messages for search/complement/repeat
added qw for mode toggling