changed setting margins from code in px to xml and dp way