updated mainActivity and provider