1、add exit dialog
2、adjust layouts