NOJIRA: Added minimize code to portlet to allow it to change state