It's added template pan.html
It's excluded unused codes.