fixed some viewport bugs and have viewport following working