fixed a bug that set profile by role. fixed a bug about accessing buttons for update user.