improve prepare resource dialog
create prepare resource class