refactoring Getstatus and Submit