Code for Admin#index view and controller, links check if a record for the form already exists, so Admin#index show the proper links