bad code but fix iPhone buttons