implemented filter for smartcontent
implemented controller for smart content
fixed some tests