fix the mainactivity to accept command terminal inputs