Modify to fix allignment to view in mobile device or ipad.