Layout Changed and Exit Button Added