Added a few libraries and more common code to mobile template