"it doesn't work" provides us with zero information. Do you get errors? Then copy and paste the full and exact error messages here and indicate were in your code they are occurring.