improved close operation and variation form layout