fix reset btn functionality