removed page creation goroutine and moved functionality into lexer