added a toggle btn controller