minor, added a constructor and some layout changes