added flex option but need to work out page rendering