added dynamic resize. going to test with various devices