added dynamic screen dymansions