added api function to get forms