changed where transition happens in display function to correct what level text gets placed at