implemented quit app