element dropdown works partially, it only adds script for the first element...