fixed pannels hidden and hopefully other bugs