added panel ajax support and hamlbars panel template