moved view-related stuff to oncreateview and fixed fragment recreation on rotation