added opening and closing the navigator

This will allow the user to open and close the navigator window by
pressing 'o' for open and 'w' for closing.