adds view for errors
adds api key to the profile