fixed minor bugs and display setup