changed submitted to $submitted to follow angularjs conventions