Fixed a bug in navigationbar and added some new options for it