panel refactor

Hi guys!