index renamed to customerRepository, key value pairs added to messages, main view removed as wasnt needed