added self adjusting buttons