better to have it as int, and if mainPage exposes this as property (see below) we wouldn't even need this here instead use the property directly where needed