added getScreenState and updated demo