move angular resource and ui router dependency to MainModule