delete class without error message and small changest to UI