Container in navbar form constructor

Pass container as parameter in constructor of form type