Tab view for profile and updated code accordingly