edit layout and qqplot function