styling layout to be inline with dialog page
fixing bug with demo layout