functionality moved to fragment