optimize page action panel for re-using html