Added table class for bootstrap.
Fixed key error in special permissions.
Added support for custom permissions.