made changes to post partial and stateProvider