modified layouts to support calculator page, extracted flash