added autoApply function
details for auto applying
updated demo file
autoapply only to elements with the `session` attribute