fixed bug with panel showing up when initialized