resURL have to be inside layout element