added rule engine, added add/remove input buttons