use params[:type] in entity picker