Creating a custom panel