Pass  variable to the relevant views