Changed Toggle button functionality