implemented Bootstrap toggle feature