Add lastvalue class to lastvalue widget elements