created class for the toggle button in p2t tab