Deleting the records based on the generated ID and fixing some styling