changed ui, added interval class