added some funtions on the table, allowing edit and delete