adding layout manager to handle initial sizing of widgets and also window resize events