How to change from hookup to relationship