fixed crashes, implemented navigation