implementing layout of outline
bug fixes for outline