fix real time
refactor each page to use a sepperate controller