add some codes in ManageActivity