added panel and exit button