update functins for plan index page