added add resources for razor.