add align option to datatable function