changed main layout to linear to change nav resizing issues. Moved UI setup back to start of oncreate.