add function to member index pag