Adds tween max, Adds UI controls for search and nav. Re-formats code