Manage page layout and replace chartjs by Dygraph library