various fixes for dataTables and some cleanup with user object