change permission and update index message