overhauled unique id

previously $hash was using rand() which made it extremely difficult to target each component individually with css. this change appends the postid along with the instace, just like wp core