added nameId

added nameId to p3media. 
layout changes and adding the new field should have come in 2 commits, sorry for that