add profile view and function