CLoud admin portlet - refactoring of event handling function