refactor _user and index pages