Pass design template id to server
Use local vars for categories and pages instead ajax call