Removed stackpanel due to overflow issue

Grid instead of stackpanel to resolve overflow issue