add necessary ios attributes