improved globel window bottom/top padding for sub layers
added functionality to displayWindowLayer action