Refactored view controller and added resources. Moved UI to xib file.