Edit Emergency Functionality added

Edit button now works, but still has some bugs to be fixed