Add portlet and correct bug on init