make resource extends controller