add rights to the sequence action when necessary
add sequencing to the categories
bugfixes to categories generation
cleanup some code
fix generation of categories and sequencing