adding soft-refresh functionality