Adjusted panel to not overflow text