fixed typo in title variable set
made components variable public