update AM (now rotate screen is able)