restructed code
Tried to append grid panel
Add dynamic panel to viewport