Added modal when favorite coffice is clicked.