testing ui to controller functionality