UI fixes. Window resize handler added