added cin flushing to menu options