multiple changes for better route handling. TODO action sending to whole app