separated sample controller from directive file
separated sample controller from directive file