Added nav bar button creation method.