added onStatus()