implement app restart