added a UI to routine.java