continues work on resources, trying to ajaxify edit_resources