fixed button functions by adding more backets--so they actually work