Deleted unused sails view of switch and update it for angular