Adding a view for the resource summary to simplify the logic in summary ...

...section and to allow dynamic binding