formatting for screen size changes, opacity fix