add prompt function to theme