added erase buttons function