added swrevealviewcontroller logic for the sliding menu