adding code for open close batch page