added sane frames layout scaling