changed datalist to listen for commands instead of events