Made splitcontainer more dynamic