Added option to return to previous page for resource viewer