Added condition for showing portlet