added button function thats completey untested and probably doesn't work