Add toggle button functionality in communityForm