embed view contents in application layout

Please confirm my pull request. Thx