Save button added. Still generating panels too many times