fix page using tamplete