ui: Fix ui resizing and change some method names