Changed popup down event to pageAfterAnimation