created class for disable view page swiping