Ui: Fix title function in portlets