refactor Projects dialog's layout