add math support and set center align footer