write controller path for fyp