massive theme rebuild and fix portlet edit function