I\'m trying to make an application that has the functionality to add and remove frames based on a button click. For now, I\'m trying to get it to remove the last frames added fr