Update profile code

Added code to link data model with form