better implementation of reset button

Signed-off-by: Grarak <williye97@gmail.com>