refactor tab_add_request.rb