adjusting layout of toggle page