added functionality to add right navigation buttons