refactory button bar layout