Added panel with position option
and with event initialization