new UI + change mthod for handling resize event