fixing empty table problem
implemented right management. different buttons to show are now handled via the db rights