change how to retrieve navbar margin
change how to init
implement horizontal margin for navbar