add profile view with logic, error and success handling