Fixed link issues and added ajax function for deletes