Tidy up frontend abit .. spotted problem with view refresh