adjust to use sceen available height and width

1. adjust to use sceen available height and width