Add return option to loadView method

Fourth option return, if set to true, view data is returned instead of printed
to output.