use getline instead of cin in BaseView