some stuff in PadActivity that is going to get painfully merged