added motor control & mainActivity changed