Simultaneous extension of continuous and uniformly continuous functions