Added initialDividerLocation and fixed bugs