Fix tables handling in controllers. Add notifications marking read.