adapting Kal project to work with iPad