-resource from edit functionality fixing errors