fixed some bugs in displaying settings pages