added autosize option into view helper