updated backend how I grab the primary key, added some modal logic and functionality