Added tooggle functions for the permission form