made buttons resize more gracefully