Problem: Right now, the selectedContact variable is being set in the component scope. When the user updates the contact data (specifically the contact name), it does not reflect globally. Eg. in the side menu.
Solution: Make a service to store the current state of selectedContact and watch for any changes and update the UI where needed.