added refresh and run functionality