added reset function + removed hardcoded url