more layout work on ref