restart function used locatio.reload method to simplify