Add the possibility to pass a view for the get method