Added panels and corrected draw loop.
Maded changes to have switching between panels.