Creating panel dynamically