Toggle button functionality added.