Changed more pages to Flask templates