fixed layout for iphone and schedule function added