added possibility to use resources as text and title