what is the difference between Functions and actions and in which case we will go for functions and actions?