implement ui for all the pages