Fixed the layouts for the graph view for all screen sizes