Refactor profile save to use promise and close unsaved profile modal after action BOOK-1024