create helper for retrieving passed url view