quit state working; text centering implemented