reworked box tpls and box ajax stuff