added display text from file functionality