connected details page dynamically and made changes to the db