edit index page add department mode