add menuRunWhile function
remove unnecessary imports