Controller and Filters

main functitons implemented.