added functionality to delete cards