beginning of menu based ui. temporary code.