Moved all code down to inner fragment class

Activity kept crashing because the layout variables were from
fragment_main.xml and I used them in onCreate() of the MainActivity
class instead of in onCreateView() of PlaceholderFragment. :bug: