added resize handler for adjusting to portait/landschaap view