navigation implemented

moved prompting code into new file as well.