Add refresh button and delete functionality