separating out code mirror