Made the plans load according to url or stateparam