finally set dynamic height of #main to dynamic