Split code into views. Added very basic styling