Removed stackpanels to resolve overflow issue; 

Replaced stackpanels with grid; the bottom button layouts should no longer overflow the screen if it is maximised or vertically dragged outwards.