refactored pages controller actions into text messages controller; removed pages controller