show/hide loader while loading initial data

and minor cleanup
open external links in separate tabs