fixed it! now onto button functions