added some ui, fixed DAL errors and added tests