Screensize function missing from layout template.