updating board when adding or deleting