adding same default vars (url, appURL) to layout as to view