Updated toggle button

Made code more efficient, removed from HTML