Abstracted mobile code to separate file. Added styling.