Added inset paramter to change the size of panel