edited margins and fixed login dialog