move @resource to <p> tag