accessible toggle written for pyramid template