index page code refactor and user management backend added