Viewport and astar working