Added fabric method template newInstance for fragments