fixed closing all pages
added test for notebook ForEach
fix indenting when not a line is selected