fixed bugs and added splash screen