made add/edit resources dynamic