adding ping type and adding relative url for activities