add option to set timeout in portlet.