Add support for navbar layout in forms