making buttons reusable