improved ui a bit, and fixed a bug in the rest api