update layout of the top page