moves resource url prefix to variable instead of hard coding