added code to reload page whenever targets are saved