added the function with a select box in user profile.