added a given for small screen size and make dialog depend on the built form