added model and controlle