doc view close; menu bar. should create a utility class though, and urgently add preferences +recent files. perhaps look at `preferscala`.