added functionality to forward/back buttons disabling