modify template layout and add bookmark system