adding put into generate_single_item_view with tests for when allowed and not allowed