start page code improved for different sizes