Button bar not quite working