Adding jQuery events when the sidr is opened or closed