changing buttons navigation in view page